package com.enjoyor.soa.traffic.api.enums;

/**
 * 违法操作类型枚举
 * @author enjoyor
 *
 */
public enum OvmsVioRetType {
	
	SUCCESS(0,"正常"),
	
	USER_UNDEFINED(1,"用户名不存在"),
	
	PASSWORD_ERROR(2,"密码错误"),
	
	NO_UPLOAD_RIGHT(3,"用户没有上传权限"),
	
	DIR_UNDEFINED(4,"行驶方向不存在"),
	
	ROAD_UNDEFINED(5,"道路不存在"),
	
	SOURCE_UNDEFINED(6,"来源不存在"),
	
	REGION_UNDEFINED(7,"地区不存在"),
	
	VIOLATION_UNDEFINED(8,"违法类型不存在"),
	
	LANE_UNDEFINED(9,"车道类型不存在"),
	
	SPOT_UNDEFINED(10,"spot不存在"),
	
	FILETYPE_UNDEFINED(11,"文件类型不存在"),
	
	FILENAME_NULL(12,"文件名不能为空"),
	
	FILE_NULL(13,"文件内容不能为空"),
	
	PLATE_NULL(14,"号牌号码不能为空"),
	
	PLATE_TYPE_NULL(15,"号牌类型不存在"),
	
	ALARM_ERROR(16,"告警标记格式错误"),
	
	EXE_ERROR(17,"exe程序不存在"),
	
	TIME_ERROR(18,"日期不存在"),
	
	TIME_EXIST(19,"日期已经存在"),
	
	ERROR(20,"异常错误"),
	
	ROAD_NULL(21,"道路不能为空"),
	
	VEHICLE_TYPE_NULL(22,"车辆类型不存在"),
	
	VEHICLE_COLOR_NULL(23,"车身颜色不存在"),

	BLOCK_UNDEFINED(24,"路段不存在"),

	BLOCK_NULL(25,"路段不能为空"),

	CROSS_UNDEFINED(26,"路口不存在"),

	CROSS_NULL(27,"路口不能为空");
	


	private final int key;

	private final String value;
	private OvmsVioRetType(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return this.key;
	}

	public String getValue() {
		return this.value;
	}

	public String toString() {
		return this.name();
	}

}
